<template>
    <div class="container">
        <keep-alive include="Class">
            <router-view class="main"></router-view>
        </keep-alive>
        <Footer class="footer" v-if="a"></Footer>
    </div>
</template>
<script>
import Footer from './components/Footer.vue';
import {mapState} from 'vuex'
export default {
    data(){
        return {
            
        }
    },
     computed:{
        ...mapState(['a'])
    },
    components:{
        Footer
    }
}
</script>

<style lang="scss">
body,html,p,h1,h2,h3,h4,h5,h6,ul,ol,li,dl,dt,dd{
  margin: 0;
  padding: 0;
}
ul,ol,li{
  list-style-type: none;
}
a,u{
  text-decoration: none;
}
a{
  color: grey;
}
.router-link-exact-active{
    color: green !important;
}
input{
  border: none;
}
body,html{
  height: 100%;
  width: 100%;
}
.container{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.main{
  width: 100%;
  flex: 1;
  overflow: auto;
}
.footer{
  border-top: 1px solid #eee;
  width: 100%;
  height: 1rem;
  display: flex;
  justify-content: space-around;
  li{
    width: 25%;
    text-align: center;
    font-size: 14px;
    span{
      margin: 5px auto 0;
      font-size: 20px;
    }
  }
}
</style>
